<?php

namespace frontend\modules\spread\controllers;

use Yii;
use frontend\components\Controller;
use common\logics\ShareLogic;
use frontend\modules\spread\models\SpreadMemberSearch;

/**
 * 通过手机号缓存领取信息接口
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class MemberController extends Controller {

    public $closeCheckAuthent = true;

    /**
     * {@inheritdoc}
     */
    protected function verbs() {
        return [
            '*' => ['POST'],
        ];
    }

    /**
     * 领取到日志
     * @inheritdoc
     */
    public function actionIndex() {
        $user_id = Yii::$app->request->post('user_id');
        return SpreadMemberSearch::findByUid($user_id);
    }

}
